#define  _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>

int main()
{

	for (int i = 1; i <= 9; i++)
	{
		for (int j = i; j <= 9; j++)
		{
			int a = i * j;


			printf("%d*%d=%d ", i, j, a);
		}
		printf("\n");
	}
	printf("*********************************************************************************************\n");
	for (int i = 1; i <= 9; i++)
	{
		for (int j = 1; j <= i; j++)
		{
			int a = i * j;
			printf("%d*%d=%d ", j, i, a);
		}
		printf("\n");
	}
	printf("*********************************************************************************************\n");


	int count = 0;
	for (int i = 1; i <= 9; i++)
	{
		for (int j = 1; j <=count; j++)
		{
			printf("    \t");
		}
		count++;
		for (int j = i; j <= 9; j++)
		{
			printf("%d*%d=%d\t", i, j, i * j);
		}
		printf("\n");

	}
	return 0;



}
